<template>
  <el-config-provider :locale="locale === 'en' ? en : zhCn" namespace="el">
    <router-view />
  </el-config-provider>
</template>

<script setup>
import zhCn from 'element-plus/es/locale/lang/zh-cn';
import en from 'element-plus/dist/locale/en.mjs';
import { useI18n } from 'vue-i18n';
const { locale } = useI18n();
</script>
